
export const desc = {
    "name": "打开创建角色界面",
    "desc": "可以创建角色则通知客户端打开创建角色界面",
    "params_type": "无",
    "params": [],
    "returns": [],
    "example": 'JGESDK:发送(2)'
}

// @ts-ignore
export async function execute(client_id, message_json) {
    const all_characters = G.Characters.get_all_characters(_ClientUserNameData.get(client_id));

    //判断角色数量
    if (all_characters.length >= 6) {
        ClientUtils.send_basic_prompt(client_id, "#Y/您无法再创建更多的角色了");
    } else {
        //通知客户端打开创建角色窗口
        ClientUtils.send_client_message(client_id, 3, "");
    }
}